#include<iostream>

int main()
{
    int i = 1;
    int &j = i;
    std::cout<<i<<std::endl;
    std::cout<<j<<std::endl;
    j = 10;
    std::cout<<i<<std::endl;
    std::cout<<j<<std::endl;
}